package com.infolab.aims.domain;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.EmbeddedId;
import javax.persistence.Entity;
import javax.persistence.Table;

import org.apache.commons.lang.builder.ToStringBuilder;
import org.apache.commons.lang.builder.ToStringStyle;

@Entity
@Table(name="AMVW_DRIVER_VEH_DETAILS")
public class Driver implements Serializable {

	@EmbeddedId
	private DriverPK driverPK;

	@Column(name="DRV_TYPE_C")
	private String driverType;
	
	@Column(name="VEH_REGN_N",insertable=false,updatable=false)
	private String vehicleId;
	
	@Column(name="DRV_NM")
	private String driverName;
	
	@Column(name="HOME_PHONE_N")
	private String driverTelephoneNo;
	
	@Column(name="MOBILE1_N")
	private String driverMobileNo;
	
	@Column(name="EMAIL")
	private String driverEmail;
	
	@Column(name="VEH_ACCESSORY_C")
	private String assetModelCode;
	
	@Column(name="VEH_ENTITY_C")
	private String companyCode;


	public DriverPK getDriverPK() {
		return driverPK;
	}

	public void setDriverPK(DriverPK driverPK) {
		this.driverPK = driverPK;
	}

	public String getDriverType() {
		return driverType;
	}

	public void setDriverType(String driverType) {
		this.driverType = driverType;
	}


	public String getDriverName() {
		return driverName;
	}

	public void setDriverName(String driverName) {
		this.driverName = driverName;
	}

	public String getDriverTelephoneNo() {
		return driverTelephoneNo;
	}

	public void setDriverTelephoneNo(String driverTelephoneNo) {
		this.driverTelephoneNo = driverTelephoneNo;
	}

	public String getDriverMobileNo() {
		return driverMobileNo;
	}

	public void setDriverMobileNo(String driverMobileNo) {
		this.driverMobileNo = driverMobileNo;
	}

	public String getDriverEmail() {
		return driverEmail;
	}

	public void setDriverEmail(String driverEmail) {
		this.driverEmail = driverEmail;
	}

	public String getAssetModelCode() {
		return assetModelCode;
	}

	public void setAssetModelCode(String assetModelCode) {
		this.assetModelCode = assetModelCode;
	}

	public String getCompanyCode() {
		return companyCode;
	}

	public void setCompanyCode(String companyCode) {
		this.companyCode = companyCode;
	}

	public String getVehicleId() {
		return vehicleId;
	}

	public void setVehicleId(String vehicleId) {
		this.vehicleId = vehicleId;
	}
	
	public String getAuditContentHead()
	{
				
		return new ToStringBuilder(this,ToStringStyle.SHORT_PREFIX_STYLE)
			.append("Type",driverType)
			.append("Name",driverName)
			.append("Vehicle",vehicleId)
			.toString();
	}
	
	public String getAuditContentDetail()
	{
		return "Not Applicable";
	}
	
	
}
